package com.suzhuoke.ncpsy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author 
 */
@TableName("tb_tp_node")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TpNode extends Model<TpNode> implements Serializable {
    private static final long serialVersionUID = 112121123123212L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 溯源模板环节名称
     */
    @ApiModelProperty("溯源模板环节名称")
    private String lName;

    /**
     * 溯源模板环节说明
     */
    @ApiModelProperty("溯源模板环节说明")
    private String nExplain;

    /**
     * 企业id
     */
    @ApiModelProperty("企业id")
    private String qId;

    /**
     * 上链以后生成的hash
     */
    @ApiModelProperty("上链以后生成的hash")
    private String hash;

    /**
     * 0为初始化正常,1为已经上链，2为删除
     */
    @ApiModelProperty("0为初始化正常,1为已经上链，2为删除")
    private Integer state;

    private Date createTime;

    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}